//
//  TTNetworkingTools.h
//  OC网络工具
//
//  Created by 陶宏路 on 16/7/20.
//  Copyright © 2016年 陶路路. All rights reserved.
//

#import <AFNetworking/AFNetworking.h>

@class TTWelconmeModel;

typedef enum {
    GET,
    POST,
}TTNetworkingType;

@interface TTNetworkingTools : AFHTTPSessionManager

+(instancetype)sharedManager;

-(void)request:(TTNetworkingType)type urlString:(NSString*)urlString parameters:(NSDictionary*)parameters sucessBlock:(void(^)(id responseObject))sucessBlock error:(void(^)(NSError *error))errorBlock;


-(void)loadWelcomeDatasucessBlock:(NSString*)code sucessBlock:(void(^)(id responseObject))sucessBlock error:(void(^)(NSError*error))errorBlock;

-(void)loadUserInfo:(TTWelconmeModel*)model sucessBlock:(void(^)(id responseObject))sucessBlock error:(void(^)(NSError*error))errorBlock;


-(void)loadHomeData:(TTWelconmeModel*)model since_id:(int64_t)since_id max_id:(int64_t)max_id sucessBlock:(void(^)(id responseObject))sucessBlock error:(void(^)(NSError*error))errorBlock;
@end
